package org.jeecg.modules.demo.yhs.Controller;

import org.jeecg.modules.demo.yhs.POJO.Proportion;
import org.jeecg.modules.demo.yhs.POJO.Result;
import org.jeecg.modules.demo.yhs.Service.ProportionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Y")
public class ProportionController {

    @Autowired
    private ProportionService proportionService;

    @GetMapping(value = "/sel",produces = "application/json; charset=utf-8")
    public Result sel(){
        Proportion proportion=proportionService.findAll();
        return new Result(200,"成功",proportion);
    }

}
